<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>

   <head>
      <title>Veiling Lijst</title>
   </head>

   <body>
	    <h4>Alle veilingen</h4><a style="padding-left: 657px;" href=" <s:url action = "Menu" namespace = "/member"><s:param name="user"><s:property value="user" /></s:param></s:url> ">Menu</a>
	    
	    <hr />

	    <table>
		    <tr class="thcolor">
			    <th>start datum</th>
			    <th>sluit datum</th>
			    <th>minimumbedrag</th>
			    <th>titel</th>
			    <th>categorie</th>
			    <th>beschrijving</th>
			    <th>veiling id</th>
			    <th>veiler</th>
		    </tr>
		    <s:iterator value="veilingen">
		    
			    <tr class="tdcolor">
				    <td><s:property value="startDatum" /></td>
					<td><s:property value="sluitDatum" /></td>
		     		<td><s:property value="minimumBedrag" /></td>
		     		<td><s:property value="naam" /></td>
		     		<td><s:property value="categorie.naam" /></td>
		     		<td><s:property value="beschrijving" /></td>
		     		<td><s:property value="veilingId" /></td>
		     		<td><s:property value="veiler.username" /></td>
		     		<td>
		     		<a href="<s:url action="showVeiling" namespace="/member"><s:param name="veilingId"><s:property value="veilingId" /></s:param></s:url>">Toon veiling</a>
					</td>
					<td><a href="<s:url action="showUpdateVeiling" namespace="/member"><s:param name="veilingId"><s:property value="veilingId"/></s:param></s:url>">Wijzig veiling</a>
					</td>
					<td>
					<a href="<s:url action="SluitVeiling" namespace="/member"><s:param name="id"><s:property value="veilingId" /></s:param></s:url>">Sluit veiling</a>
					</td>
		        	</tr>
 		    </s:iterator>
	    </table>
  		 <hr /> 	    
	</body> 
</html>
 